import { request } from '@/network/request';
export const getPlanList = (params) => {
  return request({
    url: '/Maintain/SelectPlan/btn-plansearch',
    method: 'get',
    params,
  });
};

export const addPlan = (data) => {
  return request({
    url: '/Maintain/AddPlan/btn-planadd',
    method: 'post',
    data,
  });
};
export const updatePlan = (data) => {
  return request({
    url: '/Maintain/UpdatePlan/btn-planupdate',
    method: 'post',
    data,
  });
};
export const deletePlan = (params) => {
  return request({
    url: '/Maintain/DeletePlan/btn-plandelete',
    method: 'get',
    params,
  });
};
// 预案批量插入
export const addPlanList = (data) => {
  return request({
    url: '/Maintain/AddPlanList/btn-planload',
    method: 'post',
    data,
  });
};
